<html>
<head><meta charset="utf-8"><title>using ra as library or lsp · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra.20as.20library.20or.20lsp.html">using ra as library or lsp</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="240487097"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra%20as%20library%20or%20lsp/near/240487097" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra.20as.20library.20or.20lsp.html#240487097">(May 27 2021 at 15:39)</a>:</h4>
<p>I am going to write a plugin for an editor<br>
what do you think will be more complex/time consuming: implementing lsp client or using ra directly</p>



<a name="240501961"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra%20as%20library%20or%20lsp/near/240501961" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra.20as.20library.20or.20lsp.html#240501961">(May 27 2021 at 17:23)</a>:</h4>
<p>The api of rust-analyzer is unstable and frequently changes. The language server protocol is pretty stable. Maybe (and only maybe) in the short term using the api is easier, but it will require a lot more maintenance work in the long term.</p>



<a name="240504092"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra%20as%20library%20or%20lsp/near/240504092" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra.20as.20library.20or.20lsp.html#240504092">(May 27 2021 at 17:37)</a>:</h4>
<p>thanks! also, is there a crate for lsp client</p>



<a name="240506126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra%20as%20library%20or%20lsp/near/240506126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra.20as.20library.20or.20lsp.html#240506126">(May 27 2021 at 17:52)</a>:</h4>
<p>I think the lsp-types crate is what you are looking for.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>